/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author ECH
 */
public class Company extends Base implements Serializable {
    
    private static final long serialVersionUID = 1;
    
    private String title;
    private String description;
    private String notes;

    
    //CX: references to objects    
    //x
    private String primaryPhotoID;
    
    private List<String> photoIDs = new ArrayList<String>(0);
    
    //x
    private List<String> contactIDs = new ArrayList<String>(0);
    
    //CX: referenced objects    
    //x
    private Photo primaryPhoto;   
    
    private List<Photo> photos = new ArrayList<Photo>(0); 
    
    //x
    private List<Contact> contacts = new ArrayList<Contact>(0);
    
    public Company() {
        
    }
    
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public List<Contact> getContacts() {
        return contacts;
    }

    public void setContacts(List<Contact> contacts) {
        this.contacts = contacts;
    }

    /**
     * @return the primaryPhotoID
     */
    public String getPrimaryPhotoID() {
        return primaryPhotoID;
    }

    /**
     * @param primaryPhotoID the primaryPhotoID to set
     */
    public void setPrimaryPhotoID(String primaryPhotoID) {
        this.primaryPhotoID = primaryPhotoID;
    }

    /**
     * @return the photoIDs
     */
    public List<String> getPhotoIDs() {
        return photoIDs;
    }

    /**
     * @param photoIDs the photoIDs to set
     */
    public void setPhotoIDs(List<String> photoIDs) {
        this.photoIDs = photoIDs;
    }

    /**
     * @return the primaryPhoto
     */
    public Photo getPrimaryPhoto() {
        return primaryPhoto;
    }

    /**
     * @param primaryPhoto the primaryPhoto to set
     */
    public void setPrimaryPhoto(Photo primaryPhoto) {
        this.primaryPhoto = primaryPhoto;
    }

    /**
     * @return the photos
     */
    public List<Photo> getPhotos() {
        return photos;
    }

    /**
     * @param photos the photos to set
     */
    public void setPhotos(List<Photo> photos) {
        this.photos = photos;
    }

    /**
     * @return the contactIDs
     */
    public List<String> getContactIDs() {
        return contactIDs;
    }

    /**
     * @param contactIDs the contactIDs to set
     */
    public void setContactIDs(List<String> contactIDs) {
        this.contactIDs = contactIDs;
    }
}
